# -*- coding=utf8 -*-
import logging
import threading


def keep_session(loop=True):
    print("keep session successfully")
    #
    if loop is True:
        timer = threading.Timer(3, keep_session, [True])
        timer.start()

def hello(name):
      print("hello %s\n" % name)
      timer = threading.Timer(2.0, hello, ["Hawk"])
      timer.start()
#hello('ddd')
keep_session(loop=True)
# timer = threading.Timer(1, keep_session, ('True'))